﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WebApi.Core.IRepository;
using WebApi.Core.IService;
using WebApi.Core.Model;

namespace WebApi.Core.Service
{
    public class UserService : IUserService<UserEntity>
    {
        private readonly IUserRepository<UserEntity> _userRepository;

        public UserService(IUserRepository<UserEntity> userRepository)
        {
            _userRepository = userRepository;
        }

        public Task<bool> Add(UserEntity model)
        {
            throw new NotImplementedException();
        }

        public Task<bool> DeleteByIds(object[] ids)
        {
            throw new NotImplementedException();
        }

        public Task<UserEntity> QueryByID(int id)
        {
            var model = _userRepository.QueryByID(id);
            return model;
        }

        public Task<bool> Update(UserEntity model)
        {
            throw new NotImplementedException();
        }
    }
}
